//
//  CDColumnDetailController.m
//  栏目中心Demo
//
//  Created by liaoxingchi on 16/9/24.
//  Copyright © 2016年 liaoxingchi. All rights reserved.
//

#import "CDColumnDetailController.h"
#import "Masonry.h"

@interface CDColumnDetailController ()

@end

@implementation CDColumnDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor yellowColor];
    [self setupUI];
}

// 初始化UI
- (void)setupUI {
    // 创建控件
    UIView *columnView = [[UIView alloc] init];
    columnView.backgroundColor = [UIColor cyanColor];
    [self.tableView addSubview:columnView];
//    UITableView *columnTableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
//    columnTableView.backgroundColor = [UIColor purpleColor];
//    [self.view addSubview:columnTableView];
    
    // 布局
    [columnView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.equalTo(self.view);
        make.top.equalTo(self.view).mas_offset(60);
        make.height.offset(200);
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
